package co.fitstart.entity.courseware.movement;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.alibaba.fastjson.annotation.JSONField;
import com.demo2do.core.format.PersistentFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;


/**
 * 
 * @author mohanlan
 *
 */
@Entity
@Table(name = "movement_category")
@PersistentFormat
@JsonIgnoreProperties(value={"hibernate_lazy_initializer","handler","fieldHandler"})
public class MovementCategory {
	
	@Id
    @GeneratedValue
    private Long id;

    /** 动作分类 */
    private String name;

    /** 动作分类描述 */
    @JSONField(serialize = false)
    private String description;
	
    @Column(name = "is_disabled")
    @JSONField(serialize = false)
    private boolean disabled;
	
    /**
     * The default constructor
     */
    public MovementCategory() {
	}
    
    /**
     * 
     * @return
     */
    public MovementCategory disable() {
        this.disabled = true;
        return this;
    }

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public boolean isDisabled() {
		return disabled;
	}

	public void setDisabled(boolean disabled) {
		this.disabled = disabled;
	}
}
